package cn.buk.tms.eotms.dao;

import cn.buk.common.sc.CommonSearchCriteria;
import cn.buk.tms.eotms.entity.*;
import cn.buk.tms.eotms.sc.SearchFlightOrderCriteria;

import java.util.List;

/**
 * @author yfdai
 */
public interface EnterpriseDao {

	List<Passenger> searchPassengers(int ownerId, int customerId, SearchFlightOrderCriteria sc);

  List<CustomerDepartment> searchDepartments(int ownerId, int customerId, CommonSearchCriteria sc);

  int createOrUpdateDepartment(int ownerId, CustomerDepartment dto);

  Passenger getPassengerById(int ownerId, int customerId, int id);
  Passenger getPassengerById(int id);

  AppIdInfo searchAppId(String appId);

  String getEnterpriseConfig(int enterpriseId, String itemCode);

  List<ProductDefaultSupplier> searchApiProductSupplier(int ownerId);

  /**
   * 查找车型映射信息
   */
  List<VehicleGroupMapping> searchVehicleGroupMappings(int ownerId, int supplierId);

  List<CustomerTravelApprover> searchCustomerApprovers(int ownerId, int customerId);

  AuthCodeInfo getAuthCodeInfo(String authCode);

  /**
   * 查找指定客户所使用的服务费模板
   */
  CustomerServiceTemplate searchServiceTemplateByCustomer(int ownerId, int customerId);

  EnterpriseBalance getEnterpriseBalance(int ownerId, int enterpriseId);
}
